package com.xiangyang.controller;

import com.xiangyang.entity.Drugs;
import com.xiangyang.entity.dto.Result;
import com.xiangyang.service.IDrugsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/Drugs")
public class DrugsController {
   @Autowired
    private IDrugsService drugsService;

   @PostMapping("/PharmaceuticalProcurement")
    public Result addDrugs(Drugs drugIds){
	   return drugsService.addDrugs(drugIds);
   }
   @PostMapping("/selectDrugName")
    public Result selectDrugName(){
	   return drugsService.selectDrugName();
   }
   @PostMapping("/updateDrugs")
    public Result updateDrugs(Drugs drugIds){
	   return drugsService.updateDrugs(drugIds);
   }
   @PostMapping("/deleteDrugs/delete")
    public String removeDrugs(Long drugIds){
	   return drugsService.removeDrugs(drugIds);
   }








}
